<div class="container well">
    <h3>        
        买单管理        
    </h3>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        "id" => "addBillForm",
        'enableAjaxValidation' => FALSE,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
    ));

    $model = new BDynamicFormModel();
    $fixedCardIdField = 'media_fixedCardId_choose_bill';
    $mobileField = 'media_mobile_choose_bill';
    $memberPointTypeField = 'media_memberPointTypeId_choose_bill';

    $model->addField($fixedCardIdField);
    $model->addField($mobileField);
    $model->addField($memberPointTypeField);
    ?>
    <table class="table table-hover">
        <colgroup>
            <col class="span1">
            <col class="span7">
        </colgroup>
        <tbody>
            <?php if (isset($memberPointTypeData)) { ?>
                <tr>
                    <td> <?php echo '实体卡号'; ?> </td>
                    <td>
                        <?php
                        echo $form->textField($model, $fixedCardIdField, array('placeholder' => '实体卡号' . '...', 'required' => true));
                        ?>
                    </td>
                </tr>
                <tr><td> <?php echo '用户手机'; ?> </td>
                    <td>
                        <?php
                        echo $form->textField($model, $mobileField, array('placeholder' => '手机号' . '...', 'required' => true));
                        ?>
                    </td>
                </tr>       
                <tr><td> <?php echo '积分类型'; ?> </td>
                    <td>
                        <?php
                        echo $form->dropDownList($model, $memberPointTypeField, $memberPointTypeData, array('placeholder' => '手机号' . '...', 'required' => true));
                        ?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>

    <div class="row-fluid">
        <?php
        /*
          echo $control->getAjaxLink(array('id' => 'addBill', 'name' => '普通客户买单'), array(
          'cooker' => 'BAWeBill@showAddBill',
          'htmlOptions' => array('class' => 'btn btn-primary')
          ));
         * 
         */
        ?>
        <?php
        echo $control->getAjaxLink(array('id' => 'addBill', 'name' => '客户买单'), array(
            'cooker' => 'BCafeBill@showAddBill',
            'htmlOptions' => array('class' => 'btn btn-warning')
        ));
        ?>    
        <?php
        echo $control->getAjaxLink(array('id' => 'showBillList', 'name' => '买单列表'), array(
            'cooker' => 'BCafeBill@showBillList',
            'htmlOptions' => array('class' => 'btn btn-info')
        ));
        ?>
        <?php
        echo $control->getAjaxLink(array('id' => 'showBillAnalyse', 'name' => '大数据分析'), array(
            'cooker' => 'BCafeBill@showBillAnalyse',
            'htmlOptions' => array('class' => 'btn btn-success')
        ));
        ?>
        <?php
        /*
          echo $control->getAjaxLink(array('id' => 'newMemberBill', 'name' => '新会员买单'), array(
          'cooker' => 'BCafeBill@newMemberBill',
          'htmlOptions' => array('class' => 'btn btn-warning')
          ));
         * 
         */
        ?>
    </div>

    <?php
    $this->endWidget();
    ?>
</div>